package com.imedia.frame.lucene.service;

import java.util.List;
/**
 * <p>Title: 全站检索</p>
 * <p>Description: lucene检索模块接口</p>
 * <p>Copyright: Copyright (c) 2009</p>
 * <p>Company: </p>
 * @author qiuy
 * @version 1.0
 */
public interface ISearchService {
	/**
	 * <p>description 根据内容查询</p>
	 * @param object
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public List searchByContent(Object object);
	/**
	 * <p>description 根据标题查询</p>
	 * @param object
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public List searchByTitle(Object object);
	
	/**
	 * <p>description 根据关键字全局搜索 hits逻辑处理放在action</p>
	 * @param keyword
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public List search(String keywords);
}
